#include "tageditor.h"

#include <QtGui>
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    TagEditor w;
    
    // Initialize the Window
    if (argc<2) {
    		printf("No input!!");
    	    return -1;
    }
    linkedlist *lst = new linkedlist();
    int i=1;
    while (i<argc) { 
	    lst->add(argv[i]);
	    i++;
    }
    w.setFileName(lst);
    lst->removeAll();
    delete lst;
    
    w.show();
    a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
    return a.exec();
}
